package com.yisoo.ubag.iot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

import com.yisoo.ubag.iot.component.AmqpComponent;
import com.yisoo.ubag.iot.constant.AmqpEnum;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import javax.jms.Message;

/**
 * 
 * 
 * @author mmciel
 * @email 761998179@qq.com
 * @date 2021-02-12 02:41:47
 */
@Data
@TableName("iot_msg_back")
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class MsgBackEntity implements Serializable {
	private static final long serialVersionUID = 1L;
//	private final static Logger logger = LoggerFactory.getLogger(AmqpComponent.class);

	@TableId(type= IdType.INPUT)
	private String messageId;
	private String mTopic;
	private String mContent;
	private String productKey;
	private String deviceName;
	private String direction;
	private String other;

	@TableField(exist = false)
	private AmqpEnum command;


}
